﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="../CM/MainMaster.Master"
    CodeBehind="ta0040p01.aspx.vb" Inherits="Tohto.ta0040p01" %>

<%@ Register Assembly="Tohto.Base.CustomControl" Namespace="Tohto.Base.CustomControl"
    TagPrefix="cc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Import Namespace="Tohto.Base.CommonConst" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">

        /* ページ初期化 */
        function DoReady() {
            $("#<%=txt_kanritantou_cd.ClientId %>").attr("readonly", "readonly");
            $("#<%=txt_kanritantou_nm.ClientId %>").attr("readonly", "readonly");
        }

        /* 印刷 */
        function Print() {
            var blnCheck = InputCheck();

            if (blnCheck == false) {
                return false;
            }
        }

        /* チェック */
        function InputCheck() {

            //エラー項目背景色をクリア
            ClearErrorBg();

            var ym = $("#<%=txt_ym.ClientId %>");

            if (checkNull(ym.val())) {
                SetErrorArea("CME0060", '年月', '', '', '');
                $("#<%=txt_ym.ClientId %>").addClass("errorRed");
                $("#<%=txt_ym.ClientId %>").focus();
                return false;
            }

            if (!validateDate(ym.val())) {
                SetErrorArea("CME0059", '年月', 'yyyy/MM形式', '', '');
                $("#<%=txt_ym.ClientId %>").addClass("errorRed");
                $("#<%=txt_ym.ClientId %>").focus();
                return false;
            }
        }

        /* 画面クリア */
        function PageClear() {
            if (ShowMsgDialog("CMQ0005", '', '', '', '') == true) {
                return true;
            } else {
                return false;
            }
        }

        /* 担当者参照 */
        function TantoSansyo() {
            var busho = $("#<%=cmb_busyo.ClientId %>").val();
            var returnValue = ShowMDialog("../UT/UT0060P01.aspx?<%=ComConst.QUERY_POST_CD %>=" + encodeURIComponent(busho), dialog_tantosya);

            if (returnValue != null) {
                $("#<%=txt_kanritantou_cd.ClientId %>").val(returnValue.code);
                $("#<%=txt_kanritantou_nm.ClientId %>").val(returnValue.name);
                return false;
            } else {
                return false;
            }
        }

        /* 担当者をクリア */
        function TantoClear() {
            $("#<%=txt_kanritantou_cd.ClientId %>").val("");
            $("#<%=txt_kanritantou_nm.ClientId %>").val("");
            return false;
        }

    </script>
    <div id="main" class="ta0040p01_main">
        <div id="search" class="ta0040p01_search">
            <div id="ta0040p01_search_title">
                <span class="sub_title_marck">◆</span><span class="sub_title">入居者対応報告書</span>
            </div>
            <div id="search_main">
                <table id="search_table" class="search_table">
                    <tr>
                        <td class="ta0040p01_search_lable border_top label_background">
                            年月
                        </td>
                        <td class="needmark border_top noborder_left label_background">
                            ＊
                        </td>
                        <td class="ta0040p01_ym_td border_top white_td">
                            <asp:TextBox CssClass="ta0040p01_ym ime_disabled" TabIndex="101" MaxLength="7" ID="txt_ym"
                                runat="server" Text="9999/99"></asp:TextBox>
                        </td>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="ta0040p01_search_lable label_background">
                            管理部署
                        </td>
                        <td class="needmark noborder_left label_background">
                        </td>
                        <td colspan="4" class="border_right white_td">
                            <asp:DropDownList CssClass="ta0040p01_ddl_25 ime_disabled" TabIndex="104" ID="cmb_busyo"
                                runat="server">
                                <asp:ListItem Selected="true" Text="ＮＮＮＮＮＮＮＮＮ２０ＮＮＮＮＮＮＮＮＮ"></asp:ListItem>
                                <asp:ListItem Text="ＮＮ"></asp:ListItem>
                                <asp:ListItem Text="ＮＮＮＮＮＮ"></asp:ListItem>
                                <asp:ListItem Text="ＮＮＮＮＮＮＮＮＮ"></asp:ListItem>
                                <asp:ListItem Text="ＮＮＮＮＮＮＮＮＮ２０ＮＮＮ"></asp:ListItem>
                                <asp:ListItem Text="ＮＮＮＮＮＮＮＮＮ２０ＮＮＮＮＮ" Value="1001"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="ta0040p01_search_lable label_background">
                            管理担当者
                        </td>
                        <td class="needmark noborder_left label_background">
                        </td>
                        <td class="ta0040p01_kanricd_td white_td">
                            <asp:TextBox CssClass="ta0040p01_ym" TabIndex="-1" MaxLength="10" ID="txt_kanritantou_cd"
                                runat="server" Text="9999999999"></asp:TextBox>
                        </td>
                        <td class="ta0040p01_kanrinm_td white_td">
                            <asp:TextBox CssClass="ta0040p01_nm_10" ID="txt_kanritantou_nm" runat="server" Text="ＮＮＮＮ１０ＮＮＮＮ"
                                TabIndex="-1"></asp:TextBox>
                        </td>
                        <td class="ta0040p01_select_button">
                            <asp:Button CssClass="select_button" Text="" TabIndex="106" ID="btn_tantou_sel" runat="server"
                                OnClientClick="return TantoSansyo();" />
                        </td>
                        <td class="ta0040p01_clear_button border_right">
                            <asp:Button CssClass="clear_button" Text="C" TabIndex="108" ID="btn_tantou_clear"
                                runat="server" OnClientClick="return TantoClear();" />
                        </td>
                    </tr>
                    <tr>
                        <td class="ta0040p01_search_lable label_background">
                            オーナー名(カナ)
                        </td>
                        <td class="needmark noborder_left label_background">
                        </td>
                        <td class="border_right white_td" colspan="4">
                            <asp:TextBox CssClass="ta0040p01_nm_25 ime_on" TabIndex="110" ID="txt_owner"
                                runat="server" Text="ＮＮＮＮ１０ＮＮＮＮ"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="ta0040p01_search_lable label_background">
                            物件名(カナ)
                        </td>
                        <td class="needmark noborder_left label_background">
                        </td>
                        <td class="border_right white_td" colspan="4">
                            <asp:TextBox CssClass="ta0040p01_nm_25 ime_on" TabIndex="112" ID="txt_butuken"
                                runat="server" Text="ＮＮＮＮＮＮＮＮＮＮＮＮ２５ＮＮＮＮＮＮＮＮＮＮＮ"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="button" class="button_float_right ta0040p01_button">
                <div>
                    <asp:Button ID="btn_clear" TabIndex="118" runat="server" Text="クリア" OnClientClick="return PageClear();" />
                </div>
                <div>
                    <asp:Button ID="btn_print" TabIndex="116" runat="server" Text="印刷" OnClientClick="return Print();" />
                </div>
            </div>
            <div>
            </div>
        </div>
    </div>
</asp:Content>
